package org.jeecg.qis.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.qis.entity.QisMatdetailValue;
import org.jeecg.qis.entity.QisMatheadValue;
import org.jeecg.qis.vo.QisInspectionItemsVO;
import org.jeecg.qis.vo.QisMatheadValueVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Description: qis-来料检测送检单数据表
 * @Author: shaolong
 * @Date: 2022-10-09
 * @Version: V1.0
 */
public interface QisMatheadValueMapper extends BaseMapper<QisMatheadValue> {

    IPage<QisMatheadValueVO> queryList(Page<QisMatheadValueVO> page, QisMatheadValue qisMatheadValue);

    /**
     * 查询检验单号下所有检验明细
     *
     * @param recId
     * @return
     */
    List<QisMatdetailValue> getInspectionList(@Param("recId") Integer recId);

    List<QisInspectionItemsVO> getQualitativeItems(QisMatheadValue qisMatheadValue);

    List<QisInspectionItemsVO> getQuantitativeItems(QisMatheadValue qisMatheadValue);

    List<QisMatdetailValue> getQuantitativeDetail(@Param("param") Map<String, Object> map);
}
